<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        h2{margin: 50 auto;font-family: '楷体';}
        span{color: red;font-style: italic;}
    </style>
</head>
<body>
    <h2>欢迎<span class="user">李华</span>成功进入页面</h2>
    <script src="./js/common.js"></script>
    <script>
        var userInfo1 = location.search.slice(1).split("&");
        userInfo1.forEach(function(item){
            if(item.split("=")[0] === "userName") $(".user").innerHTML = decodeURIComponent(item.split("=")[1]) 
        })
        // console.log(userInfo1)
    </script>
</body>
</html>